{extend name="index/index" /}

<!--main-->
{block name="main"}
<div class="main-content">
                    <div class="breadcrumbs" id="breadcrumbs">
                        <script type="text/javascript">
                            try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
                        </script>

                        <ul class="breadcrumb">
                            <li>
                                <i class="icon-home home-icon"></i>
                                <a href="#">Home</a>
                            </li>

                            <li>
                                <a href="#">Forms</a>
                            </li>
                            <li class="active">Form Elements</li>
                        </ul><!-- .breadcrumb -->

                        <div class="nav-search" id="nav-search">
                            <form class="form-search">
                                <span class="input-icon">
                                    <input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off">
                                    <i class="icon-search nav-search-icon"></i>
                                </span>
                            </form>
                        </div><!-- #nav-search -->
                    </div>

                    <div class="page-content">
                        <div class="page-header">
                            <h1>
                                会员管理
                                <small>
                                    <i class="icon-double-angle-right"></i>
                                    {$title}
                                </small>
                            </h1>
                        </div><!-- /.page-header -->

                        <div class="row">
                            <div class="col-xs-12">
                                <!-- PAGE CONTENT BEGINS -->
                                <form action="{:url('admin/member/update', ['id'=>$res['id']])}" method="post" class="form-horizontal" role="form">
                                    <input type="hidden" name="id" value="{$res.id}">
                                    <input type="hidden" name="_method" value="PUT" >
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label no-padding-right"  for="form-field-1"> 用户名:</label>
                                        <div class="col-sm-9">
                                            <input type="text" id="form-field-1" placeholder="Username" maxlength="6" class="col-xs-10 col-sm-5" value="{$res.nickname}" name="nickname">
                                        </div>
                                    </div>
                                    <div class="space-4"></div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label no-padding-right" for="form-field-2"> 个签: </label>
                                        <div class="col-sm-9">
                                            <input type="text" maxlength="20" name="sign" value="{$res.sign}" id="form-field-2" placeholder="sign" class="col-xs-10 col-sm-5">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label no-padding-right" for="form-field-2"> 性别: </label>
                                        <div class="col-sm-9">
                                             <div class="control-group">
                                                  <!-- Multiple Checkboxes -->
                                                  <div class="controls">
                                                    </label>
                                                    <label class="radio inline">
                                                        {if condition="($res.sex == 0)"} 
                                                            <input type="radio" value="0" name="sex" checked>
                                                           女
                                                        {else/}
                                                            <input type="radio" name="sex" value="0">
                                                           女
                                                        {/if}
                                                    </label>
                                                    &nbsp; &nbsp; &nbsp;
                                                    <label class="radio inline">
                                                        {if condition="($res.sex == 1)"} 
                                                            <input type="radio" value="1" name="sex" checked>
                                                            男
                                                        {else/}
                                                            <input type="radio" name="sex" value="1">
                                                            男
                                                        {/if}
                                                    </label>
                                                    &nbsp; &nbsp; &nbsp;
                                                     <label class="radio inline">
                                                        {if condition="($res.sex == 2)"} 
                                                            <input type="radio" value="2" name="sex" checked>
                                                            保密
                                                        {else/}
                                                            <input type="radio" name="sex" value="2">
                                                            保密
                                                        {/if}
                                                    </label>
                                                  </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label no-padding-right" for="form-field-2"> 生日: </label>
                                        <div class="col-sm-9">
                                            <input type="date" id="form-field-2"  name="birthday" value="{$res.birthday}" class="col-xs-10 col-sm-5">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label no-padding-right" for="form-field-2"> 邮箱: </label>
                                        <div class="col-sm-9">
                                            <input type="email" id="form-field-2" placeholder="email" name="emial" value="{$res.email}" class="col-xs-10 col-sm-5">
                                        </div>
                                    </div>
                                     <div class="form-group">
                                        <label class="col-sm-3 control-label no-padding-right" for="form-field-2"> QQ: </label>
                                        <div class="col-sm-9">
                                            <input type="text" id="form-field-2" name="qq" value="{$res.qq}" maxlength="11" placeholder="QQ" class="col-xs-10 col-sm-5">
                                        </div>
                                    </div>
                                    <div class="clearfix form-actions">
                                        <div class="col-md-offset-3 col-md-9">
                                            <button class="btn btn-info" type="submit">
                                                <i class="icon-ok bigger-110"></i>
                                                Submit
                                            </button>
                                            &nbsp; &nbsp; &nbsp;
                                            <button class="btn" type="reset">
                                                <i class="icon-undo bigger-110"></i>
                                                Reset
                                            </button>
                                        </div>
                                    </div>
                    </div><!-- /.page-content -->
                </div>
{/block}
<!-- basic scripts -->

<!--[if !IE]> -->

<script src="/static/admin/js/jquery.min.js"></script>

<!-- <![endif]-->

{block name="myjs" }
<!--[if IE]>
<script src="/static/admin/js/1.10.2/jquery.min.js"></script>
<![endif]-->

<!--[if !IE]> -->

<script type="text/javascript">
    window.jQuery || document.write("<script src='/static/admin/js/jquery-2.0.3.min.js'>" + "<" + "/script>");
</script>

<!-- <![endif]-->

<!--[if IE]>
<script type="text/javascript">
    window.jQuery || document.write("<script src='/static/admin/js/jquery-1.10.2.min.js'>" + "<" + "/script>");
</script>
<![endif]-->

<script type="text/javascript">
    if ("ontouchend" in document) document.write("<script src='/static/admin/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
</script>
<script src="/static/admin/js/bootstrap.min.js"></script>
<script src="/static/admin/js/typeahead-bs2.min.js"></script>

<!-- page specific plugin scripts -->

<script src="/static/admin/js/jquery.dataTables.min.js"></script>
<script src="/static/admin/js/jquery.dataTables.bootstrap.js"></script>

<!-- ace scripts -->

<script src="/static/admin/js/ace-elements.min.js"></script>
<script src="/static/admin/js/ace.min.js"></script>

<!-- inline scripts related to this page -->

<script type="text/javascript">
 /*=========================================*/

 /*=========================================*/


    jQuery(function ($) {
        var oTable1 = $('#sample-table-2').dataTable({
            "aoColumns": [
                {"bSortable": false},
                null, null, null, null, null,
                {"bSortable": false}
            ]
        });


        $('table th input:checkbox').on('click', function () {
            var that = this;
            $(this).closest('table').find('tr > td:first-child input:checkbox')
                .each(function () {
                    this.checked = that.checked;
                    $(this).closest('tr').toggleClass('selected');
                });

        });


        $('[data-rel="tooltip"]').tooltip({placement: tooltip_placement});
        function tooltip_placement(context, source) {
            var $source = $(source);
            var $parent = $source.closest('table')
            var off1 = $parent.offset();
            var w1 = $parent.width();

            var off2 = $source.offset();
            var w2 = $source.width();

            if (parseInt(off2.left) < parseInt(off1.left) + parseInt(w1 / 2)) return 'right';
            return 'left';
        }
    })

</script>
{/block}

<div style="display:none">
    <script src='http://v7.cnzz.com/stat.php?id=155540&web_id=155540' language='JavaScript' charset='gb2312'></script>
</div>
</body>
</html>
